package com.ruoyi.activiti.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activiti.mapper.ActHiActinstMapper;
import com.ruoyi.activiti.domain.ActHiActinst;
import com.ruoyi.activiti.service.IActHiActinstService;
import com.ruoyi.common.core.text.Convert;

/**
 * 历史节点Service业务层处理
 * 
 * @author ruoyi
 * @date 2019-11-27
 */
@Service
public class ActHiActinstServiceImpl implements IActHiActinstService 
{
    @Autowired
    private ActHiActinstMapper actHiActinstMapper;

    /**
     * 查询历史节点
     * 
     * @param id 历史节点ID
     * @return 历史节点
     */
    @Override
    public ActHiActinst selectActHiActinstById(String id)
    {
        return actHiActinstMapper.selectActHiActinstById(id);
    }

    /**
     * 查询历史节点列表
     * 
     * @param actHiActinst 历史节点
     * @return 历史节点
     */
    @Override
    public List<ActHiActinst> selectActHiActinstList(ActHiActinst actHiActinst)
    {
        return actHiActinstMapper.selectActHiActinstList(actHiActinst);
    }

    /**
     * 新增历史节点
     * 
     * @param actHiActinst 历史节点
     * @return 结果
     */
    @Override
    public int insertActHiActinst(ActHiActinst actHiActinst)
    {
        return actHiActinstMapper.insertActHiActinst(actHiActinst);
    }

    /**
     * 修改历史节点
     * 
     * @param actHiActinst 历史节点
     * @return 结果
     */
    @Override
    public int updateActHiActinst(ActHiActinst actHiActinst)
    {
        return actHiActinstMapper.updateActHiActinst(actHiActinst);
    }

    /**
     * 删除历史节点对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteActHiActinstByIds(String ids)
    {
        return actHiActinstMapper.deleteActHiActinstByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除历史节点信息
     * 
     * @param id 历史节点ID
     * @return 结果
     */
    public int deleteActHiActinstById(String id)
    {
        return actHiActinstMapper.deleteActHiActinstById(id);
    }
}
